package com.ssy.lingxi.logistics.api.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.logistics.api.dto.response.ReceiverAddressDetailResponse;
import com.ssy.lingxi.logistics.api.dto.response.ReceiverAddressResponse;
import com.ssy.lingxi.logistics.api.feign.ReceiverAddressControllerFeign;
import org.springframework.stereotype.Component;

@Component
public class ReceiverAddressFeignFallback implements ReceiverAddressControllerFeign {

//    @Override
//    public Wrapper<ReceiverAddressDetailResponse> addTransferOrder(Long id) {
//        return Wrapper.fail(ResponseCode.SERVICE_LOGISTICS_ERROR);
//    }

    @Override
    public Wrapper<ReceiverAddressResponse> getReceiverAddress(Long id) {
        return Wrapper.fail(ResponseCode.SERVICE_LOGISTICS_ERROR);
    }
}
